/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.material.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 试卷发布表 实体类
 *
 * @author Kris
 * @since 2023-04-07
 */
@Data
@TableName("ts_paper_release")
@ApiModel(value = "PaperRelease对象", description = "试卷发布表")
@EqualsAndHashCode(callSuper = true)
public class PaperReleaseEntity extends TenantEntity {

	/**
	 * 乐观锁
	 */
	@ApiModelProperty(value = "乐观锁")
	private String revision;
	/**
	 * 试卷ID
	 */
	@ApiModelProperty(value = "试卷ID")
	private Long paperId;
	/**
	 * 考试开始时间(考试的时间范围)
	 */
	@ApiModelProperty(value = "考试开始时间(考试的时间范围)")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date startTime;
	/**
	 * 考试结束时间(考试的时间范围)
	 */
	@ApiModelProperty(value = "考试结束时间(考试的时间范围)")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date endTime;
	/**
	 * 考试时长(本次考试考生有效答题时长，默认为试卷中的参考考试时长)
	 */
	@ApiModelProperty(value = "考试时长(本次考试考生有效答题时长，默认为试卷中的参考考试时长)")
	private Integer examDuration;
	/**
	 * 限时进入时间(设置本次考试开始后考试能够最晚进入考试的时间)
	 */
	@ApiModelProperty(value = "限时进入时间(设置本次考试开始后考试能够最晚进入考试的时间)")
	private Date limitedEntryTime;
	/**
	 * 限时提交时间(设置本次考试考生最早的提交时间)
	 */
	@ApiModelProperty(value = "限时提交时间(设置本次考试考生最早的提交时间)")
	private Date limitedSubmissionTime;
	/**
	 * 是否题目乱序
	 */
	@ApiModelProperty(value = "是否题目乱序")
	private Integer isQuestionDisrupt;
	/**
	 * 是否选项乱序
	 */
	@ApiModelProperty(value = "是否选项乱序")
	private Integer isOptionDisrupt;
	/**
	 * 及格分数(未达到及格分数学员可以进行重考)
	 */
	@ApiModelProperty(value = "及格分数(未达到及格分数学员可以进行重考)")
	private Integer passingScore;
	/**
	 * 允许重考次数(设置学员重考次数上限)
	 */
	@ApiModelProperty(value = "允许重考次数(设置学员重考次数上限)")
	private Integer allowedRetakesQuantity;
	/**
	 * 学员分数取值方式(当学员多次重考时取最高分作为最终成绩还是采取最后一次考试作为最终成绩)
	 */
	@ApiModelProperty(value = "学员分数取值方式(当学员多次重考时取最高分作为最终成绩还是采取最后一次考试作为最终成绩)")
	private Integer studentScoreSelection;
	/**
	 * 查看试卷(学员考试结束后是否可以查看试卷)
	 */
	@ApiModelProperty(value = "查看试卷(学员考试结束后是否可以查看试卷)")
	private Integer isViewPaper;
	/**
	 * 截止时间是否自动交卷(到考试截止时间是否自动交卷设置)
	 */
	@ApiModelProperty(value = "截止时间是否自动交卷(到考试截止时间是否自动交卷设置)")
	private Integer deadlineAutoSubmit;
	/**
	 * 多选题分数设置(当多选题未选全时是否给一半分数)
	 */
	@ApiModelProperty(value = "多选题分数设置(当多选题未选全时是否给一半分数)")
	private Integer multipleScoreSetting;

	/**
	 * 单选题/题 分数
	 */
	@ApiModelProperty(value = " 单选题/题 分数")
	private Integer singleScore;
	/**
	 * 多选题/题 分数
	 */
	@ApiModelProperty(value = " 多选题/题 分数")
	private Integer multipleScore;
	/**
	 * 判断题/题 分数
	 */
	@ApiModelProperty(value = " 判断题/题 分数")
	private Integer judgeScore;
	/**
	 * 填空题/空 分数
	 */
	@ApiModelProperty(value = " 填空题/空 分数")
	private Integer fillScore;
	/**
	 * 简答题/题 分数
	 */
	@ApiModelProperty(value = " 简答题/题 分数")
	private Integer shortScore;

	/**
	 * 试卷总分数
	 */
	@ApiModelProperty(value = " 试卷总分数")
	private Integer totalScore;

	/**
	 * 考试名称
	 */
	@ApiModelProperty(value = "考试名称")
	private String releaseName;

	/**
	 * 是否需要老师批阅 0否  1是
	 */
	@ApiModelProperty(value = "是否需要老师批阅")
	private Integer isNeedReview;

	/**
	 * 针对课程
	 */
	@ApiModelProperty(value = "针对课程")
	private Long courseId;

	/**
	 * 考核类型(1 课程测试、2 考试 )
	 */
	@ApiModelProperty(value = "考核类型")
	private Integer examineType;

	/**
	 * 是否特定场所(1 是、0 否 默认 )
	 * 如果是1 则对应此考试的学员全部改为待授权状态
	 * 如果是0 对应的考试学员为已授权状态
	 */
	@ApiModelProperty(value = "是否特定场所")
	private Integer permit;

	@ApiModelProperty(value = "积分")
	private Float integral;

	@ApiModelProperty(value = "学时")
	private Integer period;

	@ApiModelProperty(value = "培训计划id")
	private Long trainPlanId;

	/**
	 * 限时进入时间(设置本次考试开始后考试能够最晚进入考试的时间)
	 */
	@ApiModelProperty(value = "最晚进入时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date latestTime;

	/**
	 * 是否规则组题
	 */
	@ApiModelProperty(value = "是否规则组题")
	private Integer isRule;

	/**
	 * 是否超过30才能交卷
	 */
	@ApiModelProperty(value = "是否超过30才能交卷")
	private Integer isSubmitTime;
}
